package io.gitee.xuchenoak.limejapidocs.runner.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * controller数据
 *
 * @author: xuchenoak
 * @create: 2022-06-05 22:57
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("api_docs_controller_data")
public class ApiDocsControllerData {

    /**
     * 自增Id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 文档配置Id
     */
    private Long docsConfigId;

    /**
     * controller唯一标识
     */
    private String controllerId;

    /**
     * controller类全名
     */
    private String controllerFullName;

    /**
     * controller名称注释
     */
    private String comment;

    /**
     * 请求前缀
     */
    private String baseUriList;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 生成时间
     */
    private Date createTime;

    public ApiDocsControllerData(Long docsConfigId, String controllerId, String controllerFullName, String comment, String baseUriList, Integer sort, Date createTime) {
        this.docsConfigId = docsConfigId;
        this.controllerId = controllerId;
        this.controllerFullName = controllerFullName;
        this.comment = comment;
        this.baseUriList = baseUriList;
        this.sort = sort;
        this.createTime = createTime;
    }
}
